package cn.itcast.mapper;

import cn.itcast.pojo.user_address;
import cn.itcast.pojo.user_addressExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface user_addressMapper {
    int countByExample(user_addressExample example);

    int deleteByExample(user_addressExample example);

    int deleteByPrimaryKey(Integer addressId);

    int insert(user_address record);

    int insertSelective(user_address record);

    List<user_address> selectByExample(user_addressExample example);

    user_address selectByPrimaryKey(Integer addressId);

    int updateByExampleSelective(@Param("record") user_address record, @Param("example") user_addressExample example);

    int updateByExample(@Param("record") user_address record, @Param("example") user_addressExample example);

    int updateByPrimaryKeySelective(user_address record);

    int updateByPrimaryKey(user_address record);

    /**
     * 根据openid查询用户地址
     * @param openId
     * @return
     */
    List<user_address> getCountryByOpenid(String openId);
}